//
//  ConditionViewController.m
//  LeDiao
//
//  Created by admin on 16/2/29.
//  Copyright © 2016年 xuxuan. All rights reserved.
//

//ViewControllers
#import "CollectViewController.h"
#import "CollectCell.h"
#import "UIImageView+WebCache.h"

@interface CollectViewController ()

@end

@implementation CollectViewController {
    AFHTTPRequestOperationManager *_manager;
}



- (void)viewDidLoad
{
    _manager = [AFHTTPRequestOperationManager manager];
    self.navigationItem.title=@"我的收藏";
    _collectTableView.refreshFooterButton.hidden=NO;
    self.automaticallyAdjustsScrollViewInsets = NO;
    [_collectTableView registerClass:[CollectCell class] forCellReuseIdentifier:@"CollectCell"];
    [_collectTableView setSeparatorInset:(UIEdgeInsetsMake(0,0, 0, 0))];
    [_collectTableView setRefreshHeader:YES];
    [_collectTableView initData];
 //   _collectTableView.rowHeight=60;
    [super viewDidLoad]; 
    __block CollectViewController *controller = self;
    _collectTableView.upBlock=^(void){
        //NSLog(@"%@",@"333");
        [controller.collectTableView initLastData];
    };
    _collectTableView.pullBlock=^(void){
        //NSLog(@"%@",@"123321");
        [controller.collectTableView initData];
        
    };
    // Do any additional setup after loading the view from its nib.
}
- (id)init{
    self = [super init];
    if (self) {
        self.hidesBottomBarWhenPushed = YES;
    }
    return self;
}


 
@end
